/**
 * @file 40.cpp
 * @author xlei1123
 * @brief 
 * @version 0.1
 * @date 2022-10-02
 * 
 * @copyright Copyright (c) 2022
 * 
 */

#include<iostream>
#include<string>
#include<vector>
using namespace std;

void test() {
  vector<int> arr1;
  const int count = 10;
  for (int i = 0; i < count; i++)
  {
    arr1.push_back(i);
  }

  vector<int>::iterator itBegin = arr1.begin();
  vector<int>::iterator itEnd = arr1.end();
  while (itBegin != itEnd)
  {
    cout << *itBegin <<endl;
    itBegin++;
  }
  
  
}

int main() {
  test();
  return 0;
}